import Axios from "./../utils/axios";
import api from "./../api/index";
//房产改造展示
function reformPage(limit,page,hpName){
    return Axios.post(api.housePropertyReform.reformPage,{limit,page,hpName})
}
//房产改造更新
function reformUpdate(){
    return Axios.put(api.housePropertyReform.reformUpdate)
}
//房产改造查看详情
function reformGetDetails(){
    return Axios.get(api.housePropertyReform.reformGetDetails)
}
//房产改造根据Id查找
function reformFindById(id){
    return Axios.post(api.housePropertyReform.reformFindById)
}
//房产改造导出
function reformDerivedText(){
    return Axios.get(api.housePropertyReform.reformDerivedText)
}
//房产改造根据Id批量删除
function reformDeletes(){
    return Axios.delete(api.housePropertyReform.reformDeletes)
}
//房产改造根据Id删除
function reformDelete(id){
    return Axios.post(api.housePropertyReform.reformDelete,{id})
}
//房产改造添加
function reformAdd(){
    return Axios.post(api.housePropertyReform.reformAdd)
}
export default{
    reformPage,
    reformUpdate,
    reformGetDetails,
    reformFindById,
    reformDerivedText,
    reformDeletes,
    reformDelete,
    reformAdd
}